package com.group02.community.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group02.community.entity.dict.SysDictData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 字典数据表 Mapper 接口
 * </p>
 *
 * @author xl
 * @since 2022-07-01
 */
@Mapper
public interface SysDictDataMapper extends BaseMapper<SysDictData> {

    IPage<SysDictData> selectAllDictData(Page<SysDictData> sysDictTypePage, String dict_type, @Param("sysDictData") SysDictData sysDictData);

    void deleteSelectDictData(String id);

    List<SysDictData> selectDataByDictType(String type);

    List<SysDictData> getAllRoomStatus();

    List<SysDictData> getAllIsShop();

    List<SysDictData> getAllRoomType();

    List<SysDictData> getAllElevator();
}
